package com.training.action.chenhao;

import com.opensymphony.xwork2.ActionSupport;
import com.training.pojo.chengshu.UUser;
import com.training.service.chenhao.EmpService;

//验证信息未作
public class AddempAction extends ActionSupport{
   private UUser emp;
   private String udept;
   private EmpService empser;	//set与get方法不可少	
  public String execute(){
	  System.out.println("AddempAction");
	   empser.addemp(emp, udept);
	   return SUCCESS;
   }
	public UUser getEmp() {
	return emp;
}

public void setEmp(UUser emp) {
	this.emp = emp;
}

public String getUdept() {
	return udept;
}

public void setUdept(String udept) {
	this.udept = udept;
}

public EmpService getEmpser() {
	return empser;
}

public void setEmpser(EmpService empser) {
	this.empser = empser;
}

	
	
	
}
